import { makeAutoObservable } from "mobx";
import * as ChannelApi from "../api/Channel";
class Store{
    
    constructor() {
        makeAutoObservable(this);
    }
    Channel = [];
    
    *updatechannel() {
        // 发请求
        const res = yield ChannelApi.getChannel();
        this.Channel = res;
        // console.log( res);
    }
    
}
export default new Store();
